package stylistcrm.core.services.user.requisition;

import com.buybuyyi.stylistcrm.Entity;
import stylistcrm.core.services.store.Store;
import stylistcrm.core.services.user.EnumUserType;
import stylistcrm.core.services.user.profile.Gender;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by yanwc on 2016/9/28.
 * 用户申请单
 */
public class Requisition extends Entity<Long> {

    private static final long serialVersionUID = -2961643973031201914L;
    private EnumRequisitionState state;

    private String nickName;

    private String headImageUrl;

    /**
     * 真实姓名
     */
    private String realName;

    /**
     * 生日
     */
    private Date birthDay;

    /**
     * 性别
     */
    private Gender gender;

    /**
     * 电话号码
     */
    private String cellPhone;

    /**
     * 银行卡信息
     */
    private String bankAccountNumber;
    /**
     * 营业执照信息（非必填项）
     */
    private String businessLicense;

    /**
     * 简介 图文超文本内容
     */
    private String resume;

    /**
     * 经验，图文超文本内容
     */
    private String experience;

    private List<Store> belongStore;
    /**
     * 是否兼职
     */
    private boolean isPartTime;

    private EnumUserType usertype;

    /**
     * 营业地址
     */
    private String businessAddress;
    private Date createTime;
    private String brandIntroduction;
    private long secUserId;

    public long getSecUserId() {
        return secUserId;
    }

    public void setSecUserId(long secUserId) {
        this.secUserId = secUserId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getHeadImageUrl() {
        return headImageUrl;
    }

    public void setHeadImageUrl(String headImageUrl) {
        this.headImageUrl = headImageUrl;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public Date getBirthDay() {
        return birthDay;
    }

    public void setBirthDay(Date birthDay) {
        this.birthDay = birthDay;
    }

    public Gender getGender() {
        return gender;
    }

    public void setGender(Gender gender) {
        this.gender = gender;
    }

    public String getCellPhone() {
        return cellPhone;
    }

    public void setCellPhone(String cellPhone) {
        this.cellPhone = cellPhone;
    }

    public String getBankAccountNumber() {
        return bankAccountNumber;
    }

    public void setBankAccountNumber(String bankAccountNumber) {
        this.bankAccountNumber = bankAccountNumber;
    }

    public String getBusinessLicense() {
        return businessLicense;
    }

    public void setBusinessLicense(String businessLicense) {
        this.businessLicense = businessLicense;
    }

    public String getResume() {
        return resume;
    }

    public void setResume(String resume) {
        this.resume = resume;
    }

    public String getExperience() {
        return experience;
    }

    public void setExperience(String experience) {
        this.experience = experience;
    }

    public boolean isPartTime() {
        return isPartTime;
    }

    public void setPartTime(boolean partTime) {
        isPartTime = partTime;
    }

    public EnumUserType getUsertype() {
        return usertype;
    }

    public void setUsertype(EnumUserType usertype) {
        this.usertype = usertype;
    }

    public String getBusinessAddress() {
        return businessAddress;
    }

    public void setBusinessAddress(String businessAddress) {
        this.businessAddress = businessAddress;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public EnumRequisitionState getState() {
        return state;
    }

    public void setState(EnumRequisitionState state) {
        this.state = state;
    }

    public String getBrandIntroduction() {
        return brandIntroduction;
    }

    public void setBrandIntroduction(String brandIntroduction) {
        this.brandIntroduction = brandIntroduction;
    }

    public List<Store> getBelongStore() {
        return belongStore;
    }
    public void addBegonStore(Store store){
        if(this.belongStore == null){
            this.belongStore = new ArrayList<>();
        }
        this.belongStore.add(store);
    }
}
